package de.uni_mannheim.informatik.ai.dame_ai.main.application;

public class MainPlayer {
	static final  int HARD = 2;
	static final int NORMAL = 1;
	static final int EASY = 0;
	
	private int aiLevel;
	private int number;
	private String name;
	private boolean isHuman;
	public MainPlayer(){
		
	}
	public MainPlayer(int number, String name, boolean isHuman) {
		super();
		this.number = number;
		this.name = name;
		this.isHuman = isHuman;
		
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (isHuman ? 1231 : 1237);
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + number;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MainPlayer other = (MainPlayer) obj;
		if (isHuman != other.isHuman)
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (number != other.number)
			return false;
		return true;
	}
	public int getNumber() {
		return number;
	}
	public int getAiLevel() {
		return aiLevel;
	}
	public void setAiLevel(int aiLevel) {
		this.aiLevel = aiLevel;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isHuman() {
		return isHuman;
	}
	public void setHuman(boolean isHuman) {
		this.isHuman = isHuman;
	}
	
}
